/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/layout'

const eventRouter =
  {
    path: '/event',
    component: Layout,
    redirect: '/event',
    name: 'Event',
    meta: {
      title: 'Event',
      icon: 'event',
      roles:  ['admin'],
  
    },
    hidden: false,
    children: [
      {
        path: '/event',
        name: 'event',
        component: () => import('@/views/event/index'),
        meta: { title: 'Event', icon: 'event', breadcrumb: false,open:true,
        roles: ['admin'] ,

		  }
      },
      {
        path: '/event/addEdit',
        component: () => import('@/views/event/addEdit'),
        name: 'Add/Edit event',
        meta: { title: 'Add/Edit event', noCache: true, activeMenu: '/event/addEdit',
          roles: ['admin'] },
        hidden: true
      },
      {
        path: '/event/addList',
        component: () => import('@/views/event/addList'),
        name: 'Inside an event',
        meta: {
          title: 'Inside an event',
          noCache: true,
          // activeMenu: '/event/addList',
          roles: ['admin']
        },
        hidden: true
      }, {
        path: '/event/addUserList',
        component: () => import('@/views/event/addUserList'),
        name: 'Inside an event',
        meta: {
          title: 'Inside an event',
          noCache: true,
          // activeMenu: '/event/addUserList',
          roles: ['admin']
        },
        hidden: true
      }]
  }
export default eventRouter
